#traker
cmake_minimum_required(VERSION 2.8)

# Define project name
project(tracker)

set( CMAKE_CXX_FLAGS "-std=c++11 -O3 -DUSE_MULTI_THREAD -pthread" )

# Find OpenCV, you may need to set OpenCV_DIR variable
# to the absolute path to the directory containing OpenCVConfig.cmake file
# via the command line or GUI
set(OpenCV_DIR /usr/local/opencv340/share/OpenCV)
find_package(OpenCV 3.4 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

#add_subdirectory(sdk)

#include .h
include_directories(${PROJECT_SOURCE_DIR}/include)

#src/detection .cpp
set(SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/detection.cpp)
add_library(detection ${SOURCE_FILES})

#添加opentracker环境
include_directories( "/usr/local/include/opentracker" )

add_subdirectory(main)#子目录
